<?php
/**
 * extending Doctrine_Template_Listener_Blameable to use symfony sf_guard_user id
 */
class BlameableSymfony extends Doctrine_Template_Listener_Blameable {
    /**
     *
     * @return int $ident sf_guard_user.id
     */
    public function getUserIdentity() {
        $ident=null;
        if(isset($_SESSION)) {
            $ident = sfContext::getInstance()->getUser()->getGuardUser()->getId();
        }
        return $ident;
    }
}

